﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_AccountRecordList.aspx.cs" Inherits="SaleSystem.Fina.frm_AccountRecordList" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>转账记录</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1"  >
        <Items>
    <ext:Button runat="server" ID="bnSearch" Text="查询" Type="Submit" Icon="Reload" OnClick="bnSearch_Click"></ext:Button>
            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>

        </Items>    
    </ext:Toolbar>
     <ext:Form runat="server" ID="SimpleForm1" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false" AutoWidth="true" >
                <Rows>
                    <ext:FormRow>
                        <Items>
                    <ext:DropDownList runat="server" ID="ddl_AReco_Type" Label="交易类型" Width="200px" DataValueField="Id" DataTextField="Name" TabIndex="1"></ext:DropDownList>
                                 <ext:DropDownList runat="server" ID="ddl_AReco_Kind" Label="交易方式" Width="200px" DataValueField="Id" DataTextField="Name" TabIndex="2">
        <ext:ListItem Text="-未选择-" Value="-1" Selected="true" />
        <ext:ListItem Text="手动" Value="1" />
        <ext:ListItem Text="自动" Value="2" />
       </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                <Items>
                                 <ext:DropDownList runat="server" ID="ddl_AReco_OutNumber" Label="转出账户" Width="200px" DataValueField="AList_Id" DataTextField="AccountInfo" TabIndex="3"></ext:DropDownList> 
                                <ext:DropDownList runat="server" ID="ddl_AReco_InNumber" Label="转入账户" Width="200px" DataValueField="AList_Id" DataTextField="AccountInfo" TabIndex="4"></ext:DropDownList> 
                </Items>
                    </ext:FormRow>
            <ext:FormRow>
                <Items>
                    <ext:DatePicker runat="server" ID="dp_AReco_Datetime1" Label="交易日期>=" Width="200px" TabIndex="5"></ext:DatePicker>
                    <ext:DatePicker runat="server" ID="dp_AReco_Datetime2" Label="交易日期<=" Width="200px" TabIndex="6"></ext:DatePicker>
                </Items>
                    </ext:FormRow>
                </Rows>

    </ext:Form>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="转账记录列表"   
            IsDatabasePaging="true" AutoHeight="true" AutoWidth="true"
            DataKeyNames="ARecoId,AReco_Code" EnableRowNumber="true"  
            onrowcommand="gv_List_RowCommand" AllowPaging="true" 
            onpageindexchange="gv_List_PageIndexChange" 
            onrowdatabound="gv_List_RowDataBound" 
            onprerowdatabound="gv_List_PreRowDataBound">
    <Columns>
        <ext:BoundField ColumnID="AReco_Code" DataField="AReco_Code" DataTooltipField="AReco_Code" HeaderText="交易号" Width="100px" />
        <ext:BoundField ColumnID="Name" DataField="Name" DataTooltipField="Name" HeaderText="交易类型"  Width="100px"   />
        <ext:BoundField ColumnID="AReco_KindName" DataField="AReco_KindName" DataTooltipField="AReco_KindName" HeaderText="交易方式"  Width="100px"   />
        <ext:BoundField ColumnID="AReco_OutNumberName" DataField="AReco_OutNumberName" DataTooltipField="AReco_OutNumberName" HeaderText="转出帐户" Width="150px"/>   
        <ext:BoundField ColumnID="AReco_InNumberName" DataField="AReco_InNumberName" DataTooltipField="AReco_InNumberName" HeaderText="转入帐户" Width="150px"/>   
        <ext:BoundField ColumnID="AReco_Noney" DataField="AReco_Noney" DataTooltipField="AReco_Noney" HeaderText="交易金额" Width="150px"/>  
        <ext:TemplateField HeaderText="交易日期" Width="100px">
            <ItemTemplate>
                    <%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "AReco_Datetime").ToString()).ToString("yyyy-MM-dd")%>               
            </ItemTemplate>
        </ext:TemplateField> 
        <ext:BoundField ColumnID="AReco_Reason" DataField="AReco_Reason" DataTooltipField="AReco_Reason" HeaderText="描述" Width="150px"/>   
        <ext:LinkButtonField ColumnID="edit" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="60px" />
        <ext:LinkButtonField ColumnID="delete" CommandName="Delete" CommandArgument="BData_Id" ConfirmIcon="Question" ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px" />

    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"   EnableConfirmOnClose="true" Title="新增账户" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px" Height="350px"></ext:Window>
    </form> 
</body>
</html>
